/*
 * @Descripttion: 
 * @version: 1.0
 * @Author: Sam
 * @Date: 2022-03-26 02:58:38
 * @LastEditors: Sam
 * @LastEditTime: 2022-05-10 23:59:55
 */
import Layout from '@/layout'

export default {
 alwaysShow: true,
 redirect: 'noRedirect',
  path: '/marketing',
  component: Layout,
  name :'marketing',
  meta: {
    title: '营销活动',
    icon: 'el-icon-star-on',
    roles: [
      'marketing'
    ]
  },
  children: [
    { path: '/marking/coupon', 
      name: 'marketing_coupon', 
      redirect: 'noRedirect',
      alwaysShow: true,
      component: ()=>import('@/views/marketing/index'), 
      meta: { title: '优惠券',roles: ['marketing.coupon'] },
      children:[
        { path: '/marketing/coupon_template',
         name: 'marketing_coupon_template',
         component: ()=>import('@/views/marketing/coupon_template/index'), 
         meta: { title: '优惠券模板',roles: ['marketing.coupon_template'] }
        },
        { path: '/marketing/coupon_index',
         name: 'marketing_coupon_index',
         component: ()=>import('@/views/marketing/coupon/index'), 
         meta: { title: '优惠券列表',roles: ['marketing.coupon_index'] }   
        },
        { path: '/marketing/coupon_user',
         name: 'marketing_coupon_user',
         component: ()=>import('@/views/marketing/coupon_user'), 
         meta: { title: '用户优惠券',roles: ['marketing.coupon_user'] }   
        },
      ]
    }
  ]
}
